<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div id="area">
	<div class="content" id="work">
		<p>&nbsp;</p>
    <center>
      <table width="505" border="0">
        <tr>
          <td height="29" colspan="4"><h2>Detalle de Maquinarias para el Pedido</h2></td>
        </tr>
        <tr>
          <td>ID Maquinaria</td>
          <td>Descripcion</td>
          <td>Tarifa</td>
          <td>Subtotal</td>
          <td>Quitar</td>
        </tr>
        <c:set var="ssubtotal" value="0" /> 
        <c:forEach items="${detallePedido}" var="lista">     
        <tr>
          <td><c:out value="${lista.codigoMaquinaria}" /></td>
          <td><c:out value="${lista.descripcion}" /></td>
          <td><c:out value="${lista.precio}" /></td>
          <td><c:out value="${lista.subtotal}" /></td>
          <td><a href="quitar.gsp?id=${lista.codigoMaquinaria}"><c:out value="Quitar" /></a></td>
        </tr>
        <c:set var="ssubtotal" value="${ssubtotal + lista.subtotal}" />
        </c:forEach>
      </table>
      <table width="505" border="0">
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><a href="finalizar.gsp"><c:out value="FINALIZAR PEDIDO" /></a>
          </td>
          <td>&nbsp;</td>
        </tr>
      </table>
      <p>&nbsp;</p>
    </center>
      <p>&nbsp;</p>
	</div>
	<div class="sidenav" id="nave">
		<%@ include file="/WEB-INF/views/menu.jsp"%>
		<p>&nbsp;</p>
	</div>
</div>